#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
int main(){
	srand(time(NULL));
	char s[10];
	for(int i=0;i<10;i++){
		s[i] = (char)(65+rand()%26);
		printf("%c",s[i]);
	}
	printf("\n");
	for(int i=0;i<10;i++){
		for(int j=0;j<26;j++){
			if(s[i] == (char)(65+j)){
				cout << (char)(65+j);
				break;
			}
		}
	}
	for(int i=0;i<100;i++){
		cout << rand() <<endl;
	}
	return 0;
}
